package itheima.entry;


import itheima.propertor.StudentOperator;

import java.util.Scanner;

public class SystemEntry {
    public static void main(String[] args) {
        StudentOperator so = new StudentOperator();
        Scanner sc = new Scanner(System.in);
        while (true){
            System.out.println("欢迎来到学生管理系统");
            System.out.println("1.添加学生");
            System.out.println("2.删除学生");
            System.out.println("3.修改学生");
            System.out.println("4.查询学生");
            System.out.println("退出学生管理系统");
            String choise = sc.nextLine();
            switch (choise){
                case "1":
                    so.addstudent();
                    break;
                case "2":
                    so.deletestudent();
                    break;
                case "3":
                    so.updatestudent();
                    break;
                case "4":
                    so.findallstudent();
                    break;
                case "5":
                    System.exit(0);
                default:
                    System.out.println("请重新输入");
                    break;
            }
        }
    }
}
